namespace a {
    export let name = '小王';
    export class People{
        constructor(
            public name:string,
            sex: number
        ){}
    }
}
let fun = new a.People('乌龟', 222)

console.log(a.name) // 必须使用export导出
console.log(fun) // 必须使用export导出

/**
 * 统一导出
 */
namespace b {
    export let name = '小王';
}
namespace d {
    export let name = '小刘';
}

export {
    b, d
}